<template>
	<!-- 公告详情 -->
	<view class="help-detail">
		<nav-bar title="公告详情" @_back="_back" />
		<detail :obj="info" />
	</view>
</template>

<script>
	import minix from '@/utils/minix.js'
	import Detail from '@/components/Detail/index.vue'
	import { newsDetail } from '@/api/index.js'
	export default {
		mixins: [minix],
		components: {
			Detail
		},
		data() {
			return {
				info: {
					title: '',
					time: '',
					content: ''
				}
			}
		},
		onLoad(data) {
			this.loadList(data.id)
		},
		methods: {
			async loadList(id) {
				let {error, res} = await newsDetail({id: id});
				if (error) return;
				this.isEmpty = true;
				this.info = res || {};
			}
		}
	}
</script>

<style>
</style>
